<nav class="bar bar-tab footer-bar sborder" style="background-color: #fff;border-top: 1px solid #e7e7e7;">
    {if empty($setting) || $setting['mode']==0}
    {if $this->global_sid == 0}
        {if $setting['is_show_home']==1}
        <a class="tab-item external {if $cur_nave=='home'}active{/if}" href="{php echo $this->createMobileUrl('index', array('sid' => $_GPC['sid']), true)}">
            <span class="icon icon-shouye" style="background: none;"></span>
            <span class="tab-label">首页</span>
        </a>
        {/if}
        <a class="tab-item {if $cur_nave=='restlist'}active{/if} " href="{php echo $this->createMobileUrl('waprestlist', array('sid' => $_GPC['sid']), true)}">
        <span class="icon icon-fujin"></span>
        <span class="tab-label">附近</span>
        </a>
    {else}
        <a class="tab-item external {if $cur_nave=='detail'}active{/if}" href="{php echo $this->createMobileUrl('detail', array('id' => $this->global_sid), true)}">
            <span class="icon icon-shouye" style="background: none;"></span>
            <span class="tab-label">门店</span>
        </a>
    {/if}
    {else}
    <a class="tab-item external {if $cur_nave=='detail'}active{/if}" href="{php echo $this->createMobileUrl('detail', array('id' => $setting['storeid']), true)}">
        <span class="icon icon-shouye" style="background: none;"></span>
        <span class="tab-label">门店</span>
    </a>
    {/if}
    {if empty($setting) || $setting['mode']==0}
    {if $this->global_sid == 0}
    <!--<a class="tab-item {if $cur_nave=='collection'}active{/if}" href="{php echo $this->createMobileUrl('collection', array(), true)}">-->
        <!--<span class="icon icon-favorite"></span>-->
        <!--<span class="tab-label">收藏</span>-->
    <!--</a>-->
    {/if}
    {/if}
    <a class="tab-item {if $cur_nave=='order'}active{/if}" href="{php echo $this->createMobileUrl('order', array('sid' => $_GPC['sid']), true)}">
        <span class="icon icon-dingdan"></span>
        <span class="tab-label">订单</span>
    </a>
    <a class="tab-item {if $cur_nave=='my'}active{/if} " href="{php echo $this->createMobileUrl('usercenter', array('sid' => $_GPC['sid']), true)}">
        <span class="icon icon-account"></span>
        <span class="tab-label">我的</span>
    </a>
</nav>